package com.example.oversea_home_spring.mapper;

import com.example.oversea_home_spring.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {


    //登录 返回id，role，invalid
    User login(String account,String password);

    //用户注册
    int register(User user);

    //用户修改信息
    int updateMyInfo(User user);

}
